class AttendanceModel {
  int? errcode;
  String? errmsg;
  Data? data;
  String? message;

  AttendanceModel({this.errcode, this.errmsg, this.data, this.message});

  AttendanceModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['message'] = this.message;
    return data;
  }
}

class Data {
  int? totalDay;
  int? totalAttendDays;
  int? attendDays;
  int? notAttendDays;
  int? notCheckOut;

  Data(
      {this.totalDay,
        this.totalAttendDays,
        this.attendDays,
        this.notAttendDays,
        this.notCheckOut});

  Data.fromJson(Map<String, dynamic> json) {
    totalDay = json['total_day'];
    totalAttendDays = json['total_attend_days'];
    attendDays = json['attend_days'];
    notAttendDays = json['not_attend_days'];
    notCheckOut = json['not_check_out'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total_day'] = this.totalDay;
    data['total_attend_days'] = this.totalAttendDays;
    data['attend_days'] = this.attendDays;
    data['not_attend_days'] = this.notAttendDays;
    data['not_check_out'] = this.notCheckOut;
    return data;
  }
}
